package com.wrs.examsystem.util.wheel;

import com.wrs.examsystem.entity.Teacher;
import com.wrs.examsystem.entity.bean.TeacherBean;

/**
 * @author 王荣升
 * @version 1.0
 */
public class TeacherUtil {
    public static TeacherBean teacherInvertTeacherBean(Teacher teacher){
        TeacherBean teacherBean = new TeacherBean();
        teacherBean.setTeacherNumber(teacher.getTeacherNumber());
        teacherBean.setTeacherName(teacher.getTeacherName());
        teacherBean.setTeacherSex(teacher.getTeacherSex() == 0 ? "男":"女");
        return teacherBean;
    }
}
